#ifndef VIDEOCALL_H
#define VIDEOCALL_H

#include <QDialog>
#include "qobject.h"
#include"videopullstream.h"
#include"videopush.h"

namespace Ui {
class VideoCall;
}

class VideoCall : public QDialog
{
    Q_OBJECT

public:
    explicit VideoCall(const QString _pushUrl, const QString _pullUrl, QWidget *parent = nullptr);
    ~VideoCall();

    void start_pull();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_3_clicked();

protected:
    void closeEvent(QCloseEvent *) override;

private:
    Ui::VideoCall *ui;
    bool b = true;

    VideoPullStream *vps = nullptr;
    VideoPush *vp = nullptr;
    QString pullUrl;
    QString pushUrl;
};

#endif // VIDEOCALL_H
